/*
 * @Author: WangShuai 1830773767@qq.com
 * @Date: 2025-06-20 22:26:54
 * @LastEditors: WangShuai 1830773767@qq.com
 * @LastEditTime: 2025-06-21 19:39:24
 * @FilePath: \shangyitong\src\api\home\type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEte
 */

//定义首页的数据ts类型
export interface Response {
    code: number
    message: string
    ok: boolean
}
//已有医院数据类型
export interface Hospital {
    id: number,
    createTime: string,
    updatedTime: string,
    isDelete: boolean,
    param: {
        hostypeString: string,
        fullAddress: string,
    },
    hoscode: string,
    hosname: string,
    hostype: string,
    provincecode: string,
    cityCode: string,
    districtCode: string,
    address: string,
    logoData: string,
    intro: string,
    route: string,
    status: number,
    bookingRule: {
        cycle: number,
        releaseTime: string,
        stopTime: string,
        quitDay: number,
        quitTime: string,
        rule: string[]
    }

}
//存储已有全部医院的数据数组的ts类型
export type content = Hospital[]
export interface HosptiaResponse extends Response {
    data: {
        content: content,
        pageable: {
            sort: {
                sorted: boolean,
                unsorted: boolean,
                empty: boolean
            },
            offset: number,
            pageNumber: number,
            pageSize: number,
            paged: boolean,
            unpaged: boolean
        },
        totalPages: number,
        totalElements: number,
        last: boolean,
        first: boolean,
        sort: {
            sorted: boolean,
            unsorted: boolean,
            empty: boolean
        },
        size: number,
        number: number
        numberOfElements: number,
        empty: boolean
    }
}

//医院等级或地区数据ts类型

export interface HospitalLevelAndRegion {
    id: string,
    createTime: string
    updateTime: string,
    isDeleted: number,
    param: {},
    parentId: number,
    name: string,
    value: string,
    dictCode: string,
    hasChildren: boolean
}

export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[]

//医院等级和地区接口返回的数据类型
export interface HospitalLevelAndRegionArrResoponse extends Response {
    data: HospitalLevelAndRegionArr
}

export interface HospitalInfo extends Response {
    data: content
}